4D Chart v13

CT SELECT

Home

 
4D Chart v13
CT SELECT

CT SELECT 


 

CT SELECT ( area ; scope ; action ) 
Parameter Type   Description
area  Longint in 4D Chart area
scope  Longint in Scope of the command -1 = All 0 = Selected objects >0 = Object ID
action  Integer in Select or deselect object? 0 = Deselect 1 = Select 2 = Toggle

The CT SELECT command selects or deselects the objects in area described by scope.

  • If scope equals -1, CT SELECT affects all objects in the document.
  • If scope equals 0, CT SELECT affects the selected objects.
  • If scope is greater than 0, it must be equal to a specific object’s ID and that object is affected. If the object does not exist, CT SELECT does nothing.

The object(s) described by scope are selected or deselected according to the action parameter. If action equals 0, the objects described by scope are deselected. If action equals 1, the objects described by scope are selected. If action equals 2, the current state of the objects are toggled, that is, selected becomes deselected and vice-versa.

Objects outside of scope are not affected by CT SELECT. That is, objects that are already selected in Area and are not specified by scope remain selected.

Example  

This example deselects all objects in the document and then selects the object with an ID number equal to 1.

 CT SELECT(Area;-1;0)
 CT SELECT(Area;1;1)

 
PROPERTIES 

Product: 4D Chart
Theme: CT Objects
Number: 14574

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Chart 1

 
SEE ALSO 

CT Get ID